<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.linenumber {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='linenumber'>  1</span> <span class="COMM">//</span><span class="WHIT">
<span class='linenumber'>  2</span> </span><span class="COMM">//WindowManager = new YAHOO.widget.OverlayManager();</span><span class="WHIT">
<span class='linenumber'>  3</span> </span><span class="COMM">//Sp�ter f. Window-Manager (Tile/Cascade)...</span><span class="WHIT">
<span class='linenumber'>  4</span> 
<span class='linenumber'>  5</span> 
<span class='linenumber'>  6</span> </span><span class="COMM">//Experimental Window Manager Function </span><span class="WHIT">
<span class='linenumber'>  7</span> </span><span class="COMM">//Prevents the Content in a Window Panel from being not adjusted to the</span><span class="WHIT">
<span class='linenumber'>  8</span> </span><span class="COMM">//Windows new Height when new Height is bigger than it was before (in Cascade Windows).</span><span class="WHIT">
<span class='linenumber'>  9</span> </span><span class="NAME">xpRepos</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myPanel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">newWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">newHeight</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">newX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">newY</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 10</span> </span><span class="PUNC">{</span><span class="WHIT">    </span><span class="WHIT">
<span class='linenumber'> 11</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">headerHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">myPanel.header.offsetHeight</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 12</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">bodyHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">newHeight</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">myPanel.footer.offsetHeight</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NAME">myPanel.header.offsetHeight</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">3</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 13</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">bodyHeight</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 14</span> </span><span class="WHIT">			</span><span class="NAME">bodyHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 15</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 16</span> 
<span class='linenumber'> 17</span> </span><span class="WHIT">    </span><span class="COMM">//resize only if dimension is positive. Negative values indicate that we should ignore the args</span><span class="WHIT">
<span class='linenumber'> 18</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">newWidth</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'> 19</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 20</span> </span><span class="WHIT">         </span><span class="NAME">myPanel.cfg.setProperty</span><span class="PUNC">(</span><span class="STRN">"width"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">newWidth</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 21</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 22</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">newHeight</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 23</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 24</span> </span><span class="WHIT">         </span><span class="NAME">myPanel.cfg.setProperty</span><span class="PUNC">(</span><span class="STRN">"height"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">newHeight</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 25</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 26</span> </span><span class="WHIT">         </span><span class="WHIT">
<span class='linenumber'> 27</span> 
<span class='linenumber'> 28</span> </span><span class="WHIT">		</span><span class="NAME">myPanel.body.style.height</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NAME">bodyHeight</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 29</span> 
<span class='linenumber'> 30</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">innerHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">myPanel.innerElement.offsetHeight</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 31</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">innerWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">myPanel.innerElement.offsetWidth</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 32</span> 
<span class='linenumber'> 33</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">innerHeight</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">headerHeight</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 34</span> </span><span class="WHIT">			</span><span class="NAME">myPanel.innerElement.style.height</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">headerHeight</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 35</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 36</span> 
<span class='linenumber'> 37</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">innerWidth</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NUMB">100</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 38</span> </span><span class="WHIT">			</span><span class="NAME">myPanel.innerElement.style.width</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"100px"</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 39</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 40</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myIFrame</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementById</span><span class="PUNC">(</span><span class="NAME">myPanel.WindowName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_iFrame'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 41</span> </span><span class="WHIT">	   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">myIFrame</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 42</span> </span><span class="WHIT">	   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 43</span> </span><span class="WHIT">         </span><span class="NAME">myIFrame.height</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'> 44</span> </span><span class="WHIT">		   </span><span class="NAME">myIFrame.width</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'100%'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">  </span><span class="WHIT">
<span class='linenumber'> 45</span> </span><span class="WHIT">	   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 46</span> 
<span class='linenumber'> 47</span> 
<span class='linenumber'> 48</span> </span><span class="PUNC">}</span><span class="COMM">//end experimental</span><span class="WHIT">
<span class='linenumber'> 49</span> 
<span class='linenumber'> 50</span> 
<span class='linenumber'> 51</span> </span><span class="NAME">window.NS2112</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window.NS2112</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 52</span> 
<span class='linenumber'> 53</span> </span><span class="NAME">NS2112.namespace</span><span class="PUNC">(</span><span class="STRN">"windowManager"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 54</span> 
<span class='linenumber'> 55</span> </span><span class="NAME">NS2112.windowManager.constDefaultWindowWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">700</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 56</span> </span><span class="NAME">NS2112.windowManager.constDefaultWindowHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">450</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 57</span> </span><span class="NAME">NS2112.windowManager.constDefaultLogoWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">700</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 58</span> </span><span class="NAME">NS2112.windowManager.constDefaultLogoHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">450</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 59</span> 
<span class='linenumber'> 60</span> </span><span class="NAME">NS2112.windowManager</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">orgX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">orgY</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">offsX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">offsY</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">strLanguage</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 61</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 62</span> </span><span class="WHIT">   </span><span class="NAME">this.foo</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//a counter</span><span class="WHIT">
<span class='linenumber'> 63</span> </span><span class="WHIT">   </span><span class="NAME">this.iWindowOriginX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">orgX</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//for cascade, where to start</span><span class="WHIT">
<span class='linenumber'> 64</span> </span><span class="WHIT">   </span><span class="NAME">this.iWindowOriginY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">orgY</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 65</span> </span><span class="WHIT">   </span><span class="NAME">this.iCascadeOffsetX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">offsX</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 66</span> </span><span class="WHIT">   </span><span class="NAME">this.iCascadeOffsetY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">offsY</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 67</span> </span><span class="WHIT">   </span><span class="NAME">this.m_bHideOnDrag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//Hide Content of Dragged Windows by Default.</span><span class="WHIT">
<span class='linenumber'> 68</span> </span><span class="WHIT">   </span><span class="NAME">this.m_iWindowExtX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">NS2112.windowManager.constDefaultWindowWidth</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">   </span><span class="COMM">//loading defaults</span><span class="WHIT">
<span class='linenumber'> 69</span> </span><span class="WHIT">   </span><span class="NAME">this.m_iWindowExtY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">NS2112.windowManager.constDefaultWindowHeight</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'> 70</span> </span><span class="WHIT">   </span><span class="NAME">this.myHiddenPanels</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">Array</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//on hide all</span><span class="WHIT">
<span class='linenumber'> 71</span> </span><span class="WHIT">   </span><span class="NAME">this.OverlayManager</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">YAHOO.widget.OverlayManager</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 72</span> </span><span class="WHIT">   </span><span class="NAME">this.dragged</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 73</span> </span><span class="WHIT">   </span><span class="NAME">this.unmanagedWindow</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 74</span> 
<span class='linenumber'> 75</span> </span><span class="WHIT">   </span><span class="NAME">this.selfTest</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 76</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 77</span> </span><span class="WHIT">     </span><span class="NAME">alert</span><span class="PUNC">(</span><span class="STRN">'WindowManager'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 78</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 79</span> </span><span class="WHIT">   </span><span class="COMM">//this function and the resulting behaviour should be removed soon...</span><span class="WHIT">
<span class='linenumber'> 80</span> </span><span class="WHIT">   </span><span class="NAME">this.setUnmanagedWindow</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myWindow</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 81</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 82</span> </span><span class="WHIT">      </span><span class="NAME">this.unmanagedWindow</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">myWindow</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 83</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 84</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'> 85</span> 
<span class='linenumber'> 86</span> 
<span class='linenumber'> 87</span> </span><span class="WHIT">   </span><span class="COMM">//language support</span><span class="WHIT">
<span class='linenumber'> 88</span> </span><span class="WHIT">   </span><span class="NAME">this.myNLS</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">NS2112.nlsProvider</span><span class="PUNC">(</span><span class="STRN">"DE"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 89</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'> 90</span> </span><span class="WHIT">   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.iCascadeOffsetX</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.iCascadeOffsetX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">20</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 91</span> </span><span class="WHIT">   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.iCascadeOffsetY</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.iCascadeOffsetY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">20</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 92</span> 
<span class='linenumber'> 93</span> </span><span class="WHIT">   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.iWindowOriginY</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">this.iWindowOriginY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">50</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 94</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'> 95</span> </span><span class="WHIT">   </span><span class="NAME">this.compareZIndexAsc</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">o1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">o2</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 96</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">zIndex1</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">o1.cfg.getProperty</span><span class="PUNC">(</span><span class="STRN">"zIndex"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 97</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">zIndex2</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">o2.cfg.getProperty</span><span class="PUNC">(</span><span class="STRN">"zIndex"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 98</span> 
<span class='linenumber'> 99</span> </span><span class="WHIT">		</span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">zIndex1</span><span class="WHIT"> </span><span class="PUNC">&lt;</span><span class="WHIT"> </span><span class="NAME">zIndex2</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>100</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>101</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">zIndex1</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NAME">zIndex2</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>102</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>103</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>104</span> </span><span class="WHIT">			</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>105</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>106</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>107</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>108</span> </span><span class="WHIT">   </span><span class="NAME">this.unlink</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myPanel</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>109</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>110</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>111</span> </span><span class="WHIT">      </span><span class="NAME">this.OverlayManager.remove</span><span class="PUNC">(</span><span class="NAME">myPanel</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>112</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>113</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>114</span> 
<span class='linenumber'>115</span> </span><span class="WHIT">   </span><span class="NAME">this.movePanel</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myPanel</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">X</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">Y</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>116</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>117</span> </span><span class="WHIT">      </span><span class="NAME">myOverlay</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.find</span><span class="PUNC">(</span><span class="NAME">myPanel</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>118</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">myOverlay</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>119</span> </span><span class="WHIT">         </span><span class="NAME">myOverlay.moveTo</span><span class="PUNC">(</span><span class="NAME">X</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">Y</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>120</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>121</span> 
<span class='linenumber'>122</span> </span><span class="WHIT">   </span><span class="NAME">this.cascadeWindows</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>123</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>124</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iOffsY</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>125</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iOffsX</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>126</span> 
<span class='linenumber'>127</span> </span><span class="WHIT">      </span><span class="NAME">iOffsX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>128</span> </span><span class="WHIT">      </span><span class="NAME">iOffsY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>129</span> 
<span class='linenumber'>130</span> </span><span class="WHIT">      </span><span class="NAME">this.OverlayManager.overlays.sort</span><span class="PUNC">(</span><span class="NAME">this.compareZIndexAsc</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>131</span> </span><span class="WHIT">      </span><span class="WHIT">
<span class='linenumber'>132</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>133</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>134</span> </span><span class="WHIT">         </span><span class="NAME">iOffsX</span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.iCascadeOffsetX</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>135</span> </span><span class="WHIT">         </span><span class="NAME">iOffsY</span><span class="PUNC">+</span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.iCascadeOffsetY</span><span class="PUNC">;</span><span class="WHIT">         </span><span class="WHIT">
<span class='linenumber'>136</span> </span><span class="WHIT">         </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">moveTo</span><span class="PUNC">(</span><span class="NAME">this.iWindowOriginX</span><span class="PUNC">+</span><span class="NAME">iOffsX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.iWindowOriginY</span><span class="PUNC">+</span><span class="NAME">iOffsY</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">    </span><span class="WHIT">
<span class='linenumber'>137</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.unmanagedWindow</span><span class="PUNC">)</span><span class="WHIT">  </span><span class="KEYW">continue</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>138</span> </span><span class="WHIT">         </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">innerElement.style.width</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.m_iWindowExtX</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>139</span> </span><span class="WHIT">         </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">innerElement.style.height</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.m_iWindowExtY</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"px"</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>140</span> </span><span class="WHIT">         </span><span class="NAME">xpRepos</span><span class="PUNC">(</span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.m_iWindowExtX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>141</span> </span><span class="WHIT">                          </span><span class="NAME">this.m_iWindowExtY</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.iWindowOriginX</span><span class="PUNC">+</span><span class="NAME">iOffsX</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.iWindowOriginY</span><span class="PUNC">+</span><span class="NAME">iOffsY</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>142</span> </span><span class="WHIT">         </span><span class="NAME">this.setFocus</span><span class="PUNC">(</span><span class="NAME">X</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>143</span> </span><span class="WHIT">         </span><span class="WHIT">
<span class='linenumber'>144</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>145</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>146</span> 
<span class='linenumber'>147</span> </span><span class="WHIT">  </span><span class="NAME">this.setFocus</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">strWindowName</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>148</span> </span><span class="WHIT">  </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>149</span> </span><span class="WHIT">    </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myOverlay</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.find</span><span class="PUNC">(</span><span class="NAME">strWindowName</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>150</span> </span><span class="WHIT">    </span><span class="NAME">this.OverlayManager.focus</span><span class="PUNC">(</span><span class="NAME">myOverlay</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">  </span><span class="WHIT">
<span class='linenumber'>151</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>152</span> 
<span class='linenumber'>153</span> </span><span class="COMM">//repelling the dreadful 'still reloading' effect in Firefox</span><span class="WHIT">
<span class='linenumber'>154</span> </span><span class="WHIT">  </span><span class="NAME">this.endDrag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>155</span> </span><span class="WHIT">  </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>156</span> </span><span class="WHIT">      </span><span class="NAME">this.dragged</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>157</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>158</span> 
<span class='linenumber'>159</span> </span><span class="WHIT">  </span><span class="NAME">this.hideOnDrag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myDraggedObject</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>160</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>161</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.m_bHideOnDrag</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="COMM">//only hide when set so.</span><span class="WHIT">
<span class='linenumber'>162</span> </span><span class="WHIT">            </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>163</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">this.dragged</span><span class="WHIT"> </span><span class="PUNC">===</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//optimization, do not execute all mouseMove times.</span><span class="WHIT">
<span class='linenumber'>164</span> </span><span class="WHIT">    </span><span class="WHIT">
<span class='linenumber'>165</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>166</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>167</span> </span><span class="WHIT">         </span><span class="COMM">//if(myDraggedObject.id == this.OverlayManager.overlays[X].WindowName) continue ; //do not hide my contents</span><span class="WHIT">
<span class='linenumber'>168</span> </span><span class="WHIT">         </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementById</span><span class="PUNC">(</span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">WindowName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_outer'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>169</span> 
<span class='linenumber'>170</span> </span><span class="WHIT">	      </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>171</span> </span><span class="WHIT">	      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>172</span> </span><span class="WHIT">		      </span><span class="COMM">//myOuter.style.display = 'none' ;</span><span class="WHIT">
<span class='linenumber'>173</span> </span><span class="WHIT">           </span><span class="NAME">myOuter.style.visibility</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'hidden'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>174</span> </span><span class="WHIT">           </span><span class="WHIT">
<span class='linenumber'>175</span> </span><span class="WHIT">	      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>176</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>177</span> </span><span class="WHIT">      </span><span class="NAME">this.dragged</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//indicate drag action</span><span class="WHIT">
<span class='linenumber'>178</span> 
<span class='linenumber'>179</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>180</span> </span><span class="COMM">//not working - since overlaymanager would remove panels when calling hide...</span><span class="WHIT">
<span class='linenumber'>181</span> </span><span class="WHIT">   </span><span class="NAME">this.showAll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>182</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>183</span> </span><span class="WHIT">      </span><span class="COMM">//this.OverlayManager.showAll() ;</span><span class="WHIT">
<span class='linenumber'>184</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>185</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>186</span> </span><span class="WHIT">         </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>187</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>188</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>189</span> 
<span class='linenumber'>190</span> </span><span class="WHIT">   </span><span class="NAME">this.hideAll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>191</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>192</span> </span><span class="WHIT">      </span><span class="COMM">//this.OverlayManager.hideAll() ;</span><span class="WHIT">
<span class='linenumber'>193</span> </span><span class="WHIT">       </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>194</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>195</span> </span><span class="WHIT">         </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">hide</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>196</span> </span><span class="WHIT">         </span><span class="WHIT">
<span class='linenumber'>197</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>198</span> 
<span class='linenumber'>199</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>200</span> </span><span class="COMM">//repelling the dreadful 'still reloading' effect in Firefox</span><span class="WHIT">
<span class='linenumber'>201</span> </span><span class="COMM">//this Method is called with event onBeforeHide for the panel</span><span class="WHIT">
<span class='linenumber'>202</span> </span><span class="COMM">//it makes invisible the outer div of the panels body...</span><span class="WHIT">
<span class='linenumber'>203</span> </span><span class="WHIT">   </span><span class="NAME">this.hideContent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myDraggedObject</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>204</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>205</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>206</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>207</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">myDraggedObject.id</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">WindowName</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="COMM">//match</span><span class="WHIT">
<span class='linenumber'>208</span> </span><span class="WHIT">         </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="COMM">//do  hide my contents</span><span class="WHIT">
<span class='linenumber'>209</span> </span><span class="WHIT">          </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementById</span><span class="PUNC">(</span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">WindowName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_outer'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>210</span> 
<span class='linenumber'>211</span> </span><span class="WHIT">	         </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>212</span> </span><span class="WHIT">	         </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>213</span> </span><span class="WHIT">		         </span><span class="COMM">//myOuter.style.display = 'none' ;</span><span class="WHIT">
<span class='linenumber'>214</span> </span><span class="WHIT">               </span><span class="NAME">myOuter.style.visibility</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'hidden'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>215</span> </span><span class="WHIT">               </span><span class="KEYW">break</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">           </span><span class="WHIT">
<span class='linenumber'>216</span> </span><span class="WHIT">	         </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>217</span> </span><span class="WHIT">         </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>218</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>219</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>220</span> 
<span class='linenumber'>221</span> </span><span class="WHIT">   </span><span class="NAME">this.showContentAll</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>222</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>223</span> 
<span class='linenumber'>224</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>225</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>226</span> </span><span class="WHIT">         </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementById</span><span class="PUNC">(</span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">WindowName</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_outer'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>227</span> </span><span class="WHIT">	      </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>228</span> </span><span class="WHIT">	      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>229</span> </span><span class="COMM">/*
<span class='linenumber'>230</span> this statement causes the dreadful 'still reloading' effect in Firefox
<span class='linenumber'>231</span> but currently no other solution available...
<span class='linenumber'>232</span> 
<span class='linenumber'>233</span> */</span><span class="WHIT">            </span><span class="WHIT">
<span class='linenumber'>234</span> </span><span class="WHIT">		      </span><span class="NAME">myOuter.style.display</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'block'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>235</span> </span><span class="WHIT">            </span><span class="COMM">//myOuter.style.display = 'inline' ; </span><span class="WHIT">
<span class='linenumber'>236</span> </span><span class="WHIT">            </span><span class="NAME">myOuter.style.visibility</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'visible'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">            </span><span class="WHIT">
<span class='linenumber'>237</span> </span><span class="WHIT">	      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>238</span> </span><span class="WHIT">         </span><span class="WHIT">
<span class='linenumber'>239</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>240</span> 
<span class='linenumber'>241</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="COMM">//showContentAll</span><span class="WHIT">
<span class='linenumber'>242</span> </span><span class="WHIT">   </span><span class="COMM">//Performance optimization - hide unders while Dragging</span><span class="WHIT">
<span class='linenumber'>243</span> </span><span class="WHIT">   </span><span class="NAME">this.hideUnders</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myPanel</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>244</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>245</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">Debug</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>246</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">X</span><span class="WHIT"> </span><span class="KEYW">in</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>247</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>248</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="NAME">X</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">this.OverlayManager.overlays</span><span class="PUNC">[</span><span class="NAME">X</span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">WindowName</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="KEYW">continue</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>249</span> </span><span class="WHIT">         </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.getElementById</span><span class="PUNC">(</span><span class="NAME">X</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'_outer'</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>250</span> </span><span class="WHIT">	      </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">myOuter</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>251</span> </span><span class="WHIT">	      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>252</span> </span><span class="WHIT">		      </span><span class="NAME">myOuter.style.display</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'none'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>253</span> </span><span class="WHIT">	      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>254</span> </span><span class="WHIT">      </span><span class="WHIT">
<span class='linenumber'>255</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>256</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>257</span> </span><span class="PUNC">}</span></pre></body></html>